package com.quan.mall.service;

import com.quan.mall.commons.vo.MallDeliveryAddressVo;
import com.quan.mall.entity.MallDeliveryAddress;
import com.quan.commons.core.utils.PageUtils;
import com.quan.commons.core.biz.support.MyBaseService;

import java.util.List;

/**
 * 商城-公司收发货地址表
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2021-03-18 14:19:03
 */
public interface MallDeliveryAddressService extends MyBaseService<MallDeliveryAddress> {

    /**
     * 列表查询
     * @param vo
     * @return
     */
    public List<MallDeliveryAddressVo> queryList(PageUtils pageUtils, MallDeliveryAddressVo vo) ;

    /**
     * 分页查询
     * @param pageUtils
     * @param vo
     * @return
     */
    public PageUtils queryPage(PageUtils pageUtils, MallDeliveryAddressVo vo);

    /**
     * 获取默认的收/发地址
     * @param type
     * @return
     */
    public MallDeliveryAddress getDefaultAddress(Integer type);
}

